home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7324 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: news.deltanet.com!usenet
  2. From: mickeyw@deltanet.com (Mickey Williams)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: __beginthreadex error
  5. Date: 22 Feb 1996 19:19:35 GMT
  6. Organization: Delta Internet Services, Anaheim, CA
  7. Message-ID: <4gifk7$8ig@news2.deltanet.com>
  8. References: <4gf8gd$6r9@linus.mitre.org>
  9. NNTP-Posting-Host: lkf0167.deltanet.com
  10. X-Newsreader: WinVN 0.92.6+
  11.  
  12. In article <4gf8gd$6r9@linus.mitre.org>, costello@mbunix.mitre.org (Roger L Costello) says:
  13. >
  14. >Hi Folks,
  15. >    I am new to MS VC++ so bear with me.  I am writing a simple
  16. >console application.  I am also trying to learn MFC so I  have a
  17. >program that uses a couple of MFC classes (CFrameWnd and CMainWIndow).
  18. >
  19. >   The problem is that when I try to build the program I get the
  20. >following error:
  21. >
  22. >nafxcwd.lib (thrdcore.obj): error LNK2001: unresolved external symbol
  23. >    "__beginthreadex"
  24. >
  25. >I also get the error:
  26. >
  27. >nafxcwd.lib (thrdcore.obj): error LNK2001: unresolved external symbol
  28. >    "__endthreadex"
  29. >
  30. >Apparently I need to include some file.  What file?
  31.  
  32.  
  33. You must set up your project to include the MFC libs. By default,
  34. console projects don't use MFC. In the build setting dialog, there
  35. is an option for how MFC should be used by the project. It's
  36. currently set to not use MFC. Change it to use MFC either
  37. statically or as a DLL.
  38.  
  39. Sorry I can't be more precise, I've got VC4.0 on my machine.
  40.  
  41. >
  42. >In general, can I use MFC in console applications?  Is there some
  43. >way of setting flags during a build?
  44.  
  45. Yes. Yes, see above.
  46.  
  47. ---
  48. Mickey Williams     CTI, CSTA, TAPI, MFC, PLEX, MOUSE
  49. Author - Essential Visual C++ 4
  50.      - Develop a Professional Visual Visual C++ Application in 21 Days
  51.      - Waite Group Press Visual C++ How-To  (Co-Author)
  52.      - A Windows NT book to be named later  (Co-Author)
  53.